<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>padding内边框</title>
    <style>
        div {
            padding: 5px;
            width: 100px;
            height: 100px;
            border: 2px solid pink;
        }

        .nav {
            display: inline-block;
            border: 2px dotted lightblue;
            width: 100px;
            height: 100px;

        }
    </style>
</head>

<body>
    <div>内容</div>
    <div class="nav">
        <a href="#">可可爱爱</a>
    </div>
</body>

</html>